#e[Player]
#ScriptVersion[2] 
#Menu[JA]
#Text[gU^Cv I[g{

	]
#ReplayName[A]
script_player_main
{
	let MagicAbsorbShortRange=50;
	let MagicAbsorbLongRange=125;
	let AutoReCharge=0.5;
	let GrazeRadius=40;
	let AutoItemCollectLine=160;

	@Initialize
	{
		SetPlayerLifeImage(img, 0, 0, 48, 48);
		IntializeLoading;

		SetSpeed(4.5, 1.5);//@̈ړx
		LoadPlayerShotData(csd~"..\txt\ShotData.txt");
		SetItemCollectLine(AutoItemCollectLine);//ACeyW
		SetGrazeCircle(GrazeRadius);//@̂蔻
		SetRebirthFrame(1);//H炢{̗Lt[
		Tmain;
	}

	task Tmain
	{
		yield;
		CommonDataSetting;
		PlayerRect;//vC[͈ؔ͌^XN
		Shadow;//@ƃIvV̎c^XN
	//	Cdraw;//@S̐w̃^XN
		Pdraw;//o[Xg񐔕\^XN
		optionmove;//IvVʒu^XN
		Powor;//p[ϓ^XN
	//	GetPowerItem;
	//	GetBonusItem;
		Shot;//CVbg̃^XN
		SubShot;//TuVbg̃^XN
		Bdraw;
		HueDifine;//O[oFω^XN
		Invincible;//GԃGtFNg^XN
		MigicAbsorb;//}WbNAu\[u^XN
	//	OptionShot;//IvṼI[^XN
		BurstGaugeDisplay;//o[XgQ[WQ
		DrawOption;
		Rankdraw;
		DeleteBulletCheck;
	}

	@MainLoop
	{
		SetIntersectionCircle(GetPlayerX, GetPlayerY, 0);//@̓蔻
		yield;
	}


	@Missed{
	MainLoop;
	BurstMode=0;
	if(GetPlayerBomb>=1)
	{
	CallSpellCard;
	}
}

	@SpellCard//oA̗Lɂă{ω
	{	
		if(OnMissed)
		{	
		UseSpellCard("MicroHole", 0);
		}
		else
		{
		UseSpellCard("Stardust", 0);
		BurstRank-=1;
		}
		BurstMode=0;
	}

	@DrawLoop
	{
		SetTexture(img);

		SetGraphicRect(PlayerRectLeft,PlayerRectUp, PlayerRectRight, PlayerRectDown);
		DrawGraphic(GetPlayerX(), GetPlayerY());//@̕`
	atari;
	}

	@Finalize
	{

	}



#include_script".\..\txt\Pdraw.txt"
#include_script".\..\txt\Bdraw.txt"
#include_script".\..\txt\Cdraw.txt"
#include_script".\..\txt\Power.txt"
#include_script".\..\txt\PlayerEffect.txt"
#include_script".\..\txt\BurstEffect.txt"
#include_script".\..\txt\Hue.txt"
#include_script".\..\txt\MagicSystem.txt"
#include_script".\MarisaShot.txt"
#include_script".\MarisaOptionMove.txt"
#include_script".\..\txt\rotate3d.txt"
#include_script".\..\txt\Load.txt"
#include_script".\..\txt\data.txt"
}

#include_script".\..\txt\Spell001.txt"
